import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {UrlService} from '../../common/service/url.service';
import {Observable} from 'rxjs';
import {ApiRes} from '../../common/model/response';

@Injectable({
  providedIn: 'root'
})
export class PolicySpecialService {

  constructor(private http: HttpClient,
              private urlService: UrlService) { }
  getPolicyTopics(): Observable<ApiRes> {
    const url = this.urlService.getWebUrl('/policyAnalysis/policyTopics');
    return this.http.get<ApiRes>(url);

  }
}
